"use strict";(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([["packages_commit-attribution_index_ts-packages_commit-checks-status_index_ts-packages_current--18e2dc"],{35898:(e,t,a)=>{a.d(t,{Q:()=>i,i:()=>n});var r=a(74848),l=a(21728),o=a(96540);let s=o.createContext(void 0);function i(e){let t,a=(0,l.c)(3),{user:o,children:i}=e;return a[0]!==i||a[1]!==o?(t=(0,r.jsxs)(s.Provider,{value:o,children:[" ",i," "]}),a[0]=i,a[1]=o,a[2]=t):t=a[2],t}function n(){return o.useContext(s)}try{s.displayName||(s.displayName="CurrentUserContext")}catch{}try{i.displayName||(i.displayName="CurrentUserProvider")}catch{}},61200:(e,t,a)=>{a.d(t,{h1:()=>_,jF:()=>P,Cf:()=>W});var r=a(74848),l=a(21728),o=a(77430),s=a(25407),i=a(87448);function n(e){let t=e.path?.startsWith("/apps/")??!1;return(!t||e.login?.toLowerCase()!=="copilot-swe-agent")&&t}var c=a(11196);function u(e){let t,a=(0,l.c)(5),{renderTooltip:o,author:s,children:i}=e;if(!1===o){let e;return a[0]!==i?(e=(0,r.jsx)(r.Fragment,{children:i}),a[0]=i,a[1]=e):e=a[1],e}let n=`commits by ${s.login}`;return a[2]!==i||a[3]!==n?(t=(0,r.jsx)(c.m,{text:n,direction:"se",children:i}),a[2]=i,a[3]=n,a[4]=t):t=a[4],t}try{u.displayName||(u.displayName="AuthorTooltip")}catch{}var d=a(96540);let m={fontWeight:"bold",fontColor:"fg.default",includeTooltip:!1,avatarSize:void 0},h=(0,d.createContext)(m);function x(e){let t,a,o,s=(0,l.c)(7),{authorSettings:n,children:c}=e;s[0]!==n?(t=n??{},s[0]=n,s[1]=t):t=s[1],s[2]!==t?(a=(0,i.h1)(m,t),s[2]=t,s[3]=a):a=s[3];let u=a;return s[4]!==u||s[5]!==c?(o=(0,r.jsx)(h.Provider,{value:u,children:c}),s[4]=u,s[5]=c,s[6]=o):o=s[6],o}function p(){return(0,d.useContext)(h)||m}try{h.displayName||(h.displayName="AuthorSettingsContext")}catch{}try{x.displayName||(x.displayName="AuthorSettingsProvider")}catch{}var g=a(69497);let f={Text:"AuthorDisplayName-module__Text--i7M4Z",truncate:"AuthorDisplayName-module__truncate--Iw1IE"};function y(e){let t,a,o,s=(0,l.c)(9),{displayName:n,authorSettings:c}=e;return s[0]!==c.fontColor||s[1]!==c.fontWeight?(t={fontWeight:c.fontWeight,color:c.fontColor},s[0]=c.fontColor,s[1]=c.fontWeight,s[2]=t):t=s[2],s[3]!==n||s[4]!==t?(a=(0,r.jsx)(i.EY,{sx:t,className:f.Text,children:n}),s[3]=n,s[4]=t,s[5]=a):a=s[5],s[6]!==n||s[7]!==a?(o=(0,r.jsx)(g.A,{title:n,className:f.truncate,inline:!0,children:a}),s[6]=n,s[7]=a,s[8]=o):o=s[8],o}try{y.displayName||(y.displayName="AuthorDisplayName")}catch{}let N={authorAvatarImage:"AuthorAvatar-module__authorAvatarImage--bQzij",AuthorAvatarContainer:"AuthorAvatar-module__AuthorAvatarContainer--Z1TF8",authorHoverableLink:"AuthorAvatar-module__authorHoverableLink--vw9qe"};function _(e){let t,a,c,d,m,h,x=(0,l.c)(22),{author:g,repo:f,sx:_}=e,v=p();if(!g)return null;let C=`${g.login||"author"}`,k=g.avatarUrl,j=`${g.login||"author"}`,b=v.avatarSize;x[0]!==g?(t=n(g),x[0]=g,x[1]=t):t=x[1],x[2]!==g.avatarUrl||x[3]!==v.avatarSize||x[4]!==C||x[5]!==j||x[6]!==t?(a=(0,r.jsx)(o.r,{"aria-label":C,src:k,alt:j,size:b,square:t,className:N.authorAvatarImage}),x[2]=g.avatarUrl,x[3]=v.avatarSize,x[4]=C,x[5]=j,x[6]=t,x[7]=a):a=x[7];let A=a;return x[8]!==_?(c={..._},x[8]=_,x[9]=c):c=x[9],x[10]!==g.login||x[11]!==g.path||x[12]!==A?(d=g.path?(0,r.jsx)(i.N_,{href:g.path,"data-testid":"avatar-icon-link","data-hovercard-url":g.login?(0,s.dCN)({owner:g.login}):void 0,children:A}):A,x[10]=g.login,x[11]=g.path,x[12]=A,x[13]=d):d=x[13],x[14]!==g||x[15]!==v||x[16]!==f?(m=g.login?(0,r.jsx)(u,{author:g,renderTooltip:v.includeTooltip,children:(0,r.jsx)(i.N_,{muted:!0,href:(0,s.jQC)({repo:f,author:g.login}),"aria-label":`commits by ${g.login}`,"data-hovercard-url":(0,s.dCN)({owner:g.login}),sx:{fontWeight:v.fontWeight,color:v.fontColor,"&:hover":{color:v.fontColor}},className:N.authorHoverableLink,children:g.login})}):(0,r.jsx)(y,{displayName:g.displayName,authorSettings:v}),x[14]=g,x[15]=v,x[16]=f,x[17]=m):m=x[17],x[18]!==c||x[19]!==d||x[20]!==m?(h=(0,r.jsxs)(i.az,{sx:c,"data-testid":"author-avatar",className:N.AuthorAvatarContainer,children:[d,m]}),x[18]=c,x[19]=d,x[20]=m,x[21]=h):h=x[21],h}try{_.displayName||(_.displayName="AuthorAvatar")}catch{}var v=a(57352),C=a(5524),k=a(15220);let j={PrimerLink:"AuthorsDialog-module__PrimerLink--EKj48",ActionList:"AuthorsDialog-module__ActionList--qxNlU",ActionList_LinkItem:"AuthorsDialog-module__ActionList_LinkItem--DrLG5",GitHubAvatar:"AuthorsDialog-module__GitHubAvatar--lwnwX"};function b(e){let t,a,o,s,i=(0,l.c)(12),{authors:n,repo:c}=e,u=n.length,[m,h]=(0,d.useState)(!1),x=(0,d.useRef)(null),p=`Show ${u} authors`;return i[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{h(!0)},i[0]=t):t=i[0],i[1]!==u||i[2]!==p?(a=(0,r.jsxs)(v.A,{as:"button","aria-label":p,"data-testid":"authors-dialog-anchor",onClick:t,ref:x,muted:!0,className:j.PrimerLink,children:[u," ","people"]}),i[1]=u,i[2]=p,i[3]=a):a=i[3],i[4]!==u||i[5]!==n||i[6]!==m||i[7]!==c?(o=m&&(0,r.jsx)(k.l,{title:`${u} authors`,onClose:()=>{h(!1),setTimeout(()=>x.current?.focus(),25)},width:"medium",height:u>=12?"small":"auto",renderBody:()=>(0,r.jsx)(C.l,{"data-testid":"contributor-dialog-list",className:j.ActionList,children:n.map((e,t)=>(0,r.jsx)(A,{author:e,repo:c},`${e.login}_${t}`))})}),i[4]=u,i[5]=n,i[6]=m,i[7]=c,i[8]=o):o=i[8],i[9]!==a||i[10]!==o?(s=(0,r.jsxs)(r.Fragment,{children:[a,o]}),i[9]=a,i[10]=o,i[11]=s):s=i[11],s}function A(e){let t,a,i,c,u,d=(0,l.c)(16),{author:m,repo:h}=e,x=m.login??"";d[0]!==h||d[1]!==x?(t=(0,s.jQC)({repo:h,author:x}),d[0]=h,d[1]=x,d[2]=t):t=d[2];let p=m.avatarUrl,f=m.login??m.displayName;d[3]!==m?(a=n(m),d[3]=m,d[4]=a):a=d[4],d[5]!==m.avatarUrl||d[6]!==f||d[7]!==a?(i=(0,r.jsx)(o.r,{src:p,alt:f,"aria-hidden":"true",square:a,className:j.GitHubAvatar}),d[5]=m.avatarUrl,d[6]=f,d[7]=a,d[8]=i):i=d[8];let y=m.login??m.displayName??"",N=m.login??m.displayName;return d[9]!==y||d[10]!==N?(c=(0,r.jsx)(g.A,{inline:!0,title:y,children:N}),d[9]=y,d[10]=N,d[11]=c):c=d[11],d[12]!==t||d[13]!==i||d[14]!==c?(u=(0,r.jsxs)(C.l.LinkItem,{"data-testid":"contributor-dialog-row",href:t,className:j.ActionList_LinkItem,children:[i,c]}),d[12]=t,d[13]=i,d[14]=c,d[15]=u):u=d[15],u}try{b.displayName||(b.displayName="AuthorsDialog")}catch{}try{A.displayName||(A.displayName="AuthorRow")}catch{}var S=a(94602);function B(e){let t,a,i,c=(0,l.c)(11),{authors:u,onBehalfOf:d}=e,m=p();if(c[0]!==m||c[1]!==u){let e;c[3]!==m?(e=(e,t)=>(0,r.jsx)(o.r,{"data-testid":"commit-stack-avatar",src:e.avatarUrl,alt:e.login??e.displayName,"data-hovercard-url":(0,s.dCN)({owner:e.login??""}),square:n(e),size:m.avatarSize},`${e.login}_${t}`),c[3]=m,c[4]=e):e=c[4],t=u.slice(0,5).map(e),c[0]=m,c[1]=u,c[2]=t}else t=c[2];return c[5]!==m||c[6]!==d?(a=d&&(0,r.jsx)(o.r,{"data-testid":"commit-stack-avatar",src:d.avatarUrl,alt:d.login??d.displayName,"data-hovercard-url":(0,s.qsO)({owner:d.login??""}),square:!0,size:m.avatarSize},`${d.login}_on_behalf_of`),c[5]=m,c[6]=d,c[7]=a):a=c[7],c[8]!==t||c[9]!==a?(i=(0,r.jsxs)(S.A,{children:[t,a]}),c[8]=t,c[9]=a,c[10]=i):i=c[10],i}try{B.displayName||(B.displayName="CommitAuthorStack")}catch{}var L=a(34164);let I={authorLinkContainer:"AuthorLink-module__authorLinkContainer--kzOT6",authorNameLink:"AuthorLink-module__authorNameLink--dCuQh"};function T(e){let t,a,o,n=(0,l.c)(9),{author:c,repo:d,className:m}=e,h=p();return c?(n[0]!==m?(t=(0,L.$)(I.authorLinkContainer,m),n[0]=m,n[1]=t):t=n[1],n[2]!==c||n[3]!==h||n[4]!==d?(a=c.login?(0,r.jsx)(u,{author:c,renderTooltip:h.includeTooltip,children:(0,r.jsx)(i.N_,{muted:!0,href:(0,s.jQC)({repo:d,author:c.login}),"aria-label":`commits by ${c.login}`,"data-hovercard-url":(0,s.dCN)({owner:c.login}),sx:{fontWeight:h.fontWeight,color:h.fontColor,"&:hover":{color:h.fontColor}},className:I.authorNameLink,children:c.login})}):(0,r.jsx)(y,{displayName:c.displayName,authorSettings:h}),n[2]=c,n[3]=h,n[4]=d,n[5]=a):a=n[5],n[6]!==t||n[7]!==a?(o=(0,r.jsx)("div",{"data-testid":"author-link",className:t,children:a}),n[6]=t,n[7]=a,n[8]=o):o=n[8],o):null}try{T.displayName||(T.displayName="AuthorLink")}catch{}let w={orgLink:"OrgLink-module__orgLink--mWbZQ"};function D(e){let t,a,o,i,n=(0,l.c)(12),{org:c,className:u}=e;if(!c)return null;n[0]!==u?(t=(0,L.$)("d-flex flex-row flex-items-center",u),n[0]=u,n[1]=t):t=n[1];let d=c.path,m=`${c.login}'s org home page`;return n[2]!==c.login?(a=(0,s.qsO)({owner:c.login}),n[2]=c.login,n[3]=a):a=n[3],n[4]!==c.login||n[5]!==c.path||n[6]!==m||n[7]!==a?(o=(0,r.jsx)(v.A,{muted:!0,href:d,"aria-label":m,"data-hovercard-url":a,className:w.orgLink,children:c.login}),n[4]=c.login,n[5]=c.path,n[6]=m,n[7]=a,n[8]=o):o=n[8],n[9]!==t||n[10]!==o?(i=(0,r.jsx)("div",{className:t,children:o}),n[9]=t,n[10]=o,n[11]=i):i=n[11],i}try{D.displayName||(D.displayName="OrgLink")}catch{}var z=a(38621);let $={AuthorLink:"CommitAttribution-module__AuthorLink--oMvAS",CommitAttributionContainer:"CommitAttribution-module__CommitAttributionContainer--Si80C"};function F(e){let t,a=(0,l.c)(3),{author:o,repo:s}=e;return a[0]!==o||a[1]!==s?(t=(0,r.jsx)(_,{author:o,repo:s}),a[0]=o,a[1]=s,a[2]=t):t=a[2],t}function R(e){let t,a,o,s,i=(0,l.c)(13),{author:n,committer:c,committerAttribution:u,onBehalfOf:d,repo:m}=e;return i[0]!==n||i[1]!==c||i[2]!==u?(t=[n],c&&u&&t.push(c),i[0]=n,i[1]=c,i[2]=u,i[3]=t):t=i[3],i[4]!==t||i[5]!==d?(a=(0,r.jsx)(B,{authors:t,onBehalfOf:d}),i[4]=t,i[5]=d,i[6]=a):a=i[6],i[7]!==n||i[8]!==m?(o=(0,r.jsx)(T,{author:n,repo:m,className:$.AuthorLink}),i[7]=n,i[8]=m,i[9]=o):o=i[9],i[10]!==a||i[11]!==o?(s=(0,r.jsxs)(r.Fragment,{children:[a,o]}),i[10]=a,i[11]=o,i[12]=s):s=i[12],s}function U(e){let t,a,o,s=(0,l.c)(12),{authors:i,onBehalfOf:n,repo:c}=e;if(s[0]!==i||s[1]!==n?(t=(0,r.jsx)(B,{authors:i,onBehalfOf:n}),s[0]=i,s[1]=n,s[2]=t):t=s[2],s[3]!==i||s[4]!==c){let e;s[6]!==i.length||s[7]!==c?(e=(e,t)=>(0,r.jsxs)(d.Fragment,{children:[(0,r.jsx)(T,{author:e,repo:c,className:$.AuthorLink}),t!==i.length-1&&(0,r.jsx)("span",{className:"pl-1",children:"and"})]},`${e.login}_${t}`),s[6]=i.length,s[7]=c,s[8]=e):e=s[8],a=i.map(e),s[3]=i,s[4]=c,s[5]=a}else a=s[5];return s[9]!==t||s[10]!==a?(o=(0,r.jsxs)(r.Fragment,{children:[t,a]}),s[9]=t,s[10]=a,s[11]=o):o=s[11],o}function O(e){let t,a,o,s=(0,l.c)(9),{authors:i,onBehalfOf:n,repo:c}=e;return s[0]!==i||s[1]!==n?(t=(0,r.jsx)(B,{authors:i,onBehalfOf:n}),s[0]=i,s[1]=n,s[2]=t):t=s[2],s[3]!==i||s[4]!==c?(a=(0,r.jsx)(b,{authors:i,repo:c}),s[3]=i,s[4]=c,s[5]=a):a=s[5],s[6]!==t||s[7]!==a?(o=(0,r.jsxs)(r.Fragment,{children:[t,a]}),s[6]=t,s[7]=a,s[8]=o):o=s[8],o}function P(e){let t,a,o,s,i,n,c,u,d,m=(0,l.c)(43),{authors:h,committer:p,committerAttribution:g,onBehalfOf:f,repo:y,children:N,includeVerbs:_,authorSettings:v,textVariant:C}=e,k=void 0===_||_,j=1===h.length&&!g&&!f,b=1===h.length&&(g||f),A=2===h.length&&!g,S=!j&&!b&&!A,B=h[0],I=k?"pl-1":"",T="muted"===(void 0===C?"default":C)?"color-fg-muted":"";m[0]!==T?(t=(0,L.$)(T,$.CommitAttributionContainer),m[0]=T,m[1]=t):t=m[1],m[2]!==B||m[3]!==y||m[4]!==j?(a=j&&B&&(0,r.jsx)(F,{author:B,repo:y}),m[2]=B,m[3]=y,m[4]=j,m[5]=a):a=m[5],m[6]!==b||m[7]!==p||m[8]!==g||m[9]!==B||m[10]!==f||m[11]!==y?(o=b&&B&&(0,r.jsx)(R,{author:B,committer:p,committerAttribution:g,onBehalfOf:f,repo:y}),m[6]=b,m[7]=p,m[8]=g,m[9]=B,m[10]=f,m[11]=y,m[12]=o):o=m[12],m[13]!==h||m[14]!==A||m[15]!==f||m[16]!==y?(s=A&&(0,r.jsx)(U,{authors:h,onBehalfOf:f,repo:y}),m[13]=h,m[14]=A,m[15]=f,m[16]=y,m[17]=s):s=m[17],m[18]!==h||m[19]!==S||m[20]!==f||m[21]!==y?(i=S&&(0,r.jsx)(O,{authors:h,onBehalfOf:f,repo:y}),m[18]=h,m[19]=S,m[20]=f,m[21]=y,m[22]=i):i=m[22];let w=g||!1;return m[23]!==p||m[24]!==k||m[25]!==y||m[26]!==w||m[27]!==I?(n=(0,r.jsx)(H,{committer:p,committerAttribution:w,includeVerbs:k,repo:y,verbClass:I}),m[23]=p,m[24]=k,m[25]=y,m[26]=w,m[27]=I,m[28]=n):n=m[28],m[29]!==f?(c=f&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"pl-1",children:"on behalf of"}),(0,r.jsx)(D,{org:f,className:"pl-1"})]}),m[29]=f,m[30]=c):c=m[30],m[31]!==v||m[32]!==N||m[33]!==n||m[34]!==c||m[35]!==a||m[36]!==o||m[37]!==s||m[38]!==i?(u=(0,r.jsxs)(x,{authorSettings:v,children:[a,o,s,i,n,c,N]}),m[31]=v,m[32]=N,m[33]=n,m[34]=c,m[35]=a,m[36]=o,m[37]=s,m[38]=i,m[39]=u):u=m[39],m[40]!==u||m[41]!==t?(d=(0,r.jsx)("div",{className:t,children:u}),m[40]=u,m[41]=t,m[42]=d):d=m[42],d}function H(e){let t=(0,l.c)(18),{committer:a,committerAttribution:o,includeVerbs:s,repo:i,verbClass:n}=e;if(a&&a.isGitHub){let e,a=s&&"authored";return t[0]!==a||t[1]!==n?(e=(0,r.jsx)("span",{className:n,children:a}),t[0]=a,t[1]=n,t[2]=e):e=t[2],e}if(o){let e,l,o,c,u=s?"authored and":"and";t[6]!==u?(e=(0,r.jsx)("span",{className:"pl-1",children:u}),t[6]=u,t[7]=e):e=t[7],t[8]!==a||t[9]!==i?(l=(0,r.jsx)(T,{author:a,repo:i,className:$.AuthorLink}),t[8]=a,t[9]=i,t[10]=l):l=t[10];let d=s&&"committed";return t[11]!==d||t[12]!==n?(o=(0,r.jsx)("span",{className:n,children:d}),t[11]=d,t[12]=n,t[13]=o):o=t[13],t[14]!==e||t[15]!==l||t[16]!==o?(c=(0,r.jsxs)(r.Fragment,{children:[e,l,o]}),t[14]=e,t[15]=l,t[16]=o,t[17]=c):c=t[17],c}{let e,a=s&&"committed";return t[3]!==a||t[4]!==n?(e=(0,r.jsx)("span",{className:n,children:a}),t[3]=a,t[4]=n,t[5]=e):e=t[5],e}}function W(e){let t,a,o,s,i,n=(0,l.c)(11),{pusher:c,repo:u,children:d,textVariant:m}=e;if(!c)return null;let h="muted"===(void 0===m?"default":m)?"color-fg-muted":"";return n[0]!==h?(t=(0,L.$)(h,$.CommitAttributionContainer),n[0]=h,n[1]=t):t=n[1],n[2]===Symbol.for("react.memo_cache_sentinel")?(a=(0,r.jsx)("span",{className:"pl-1 pr-1",children:(0,r.jsx)(z.RepoPushIcon,{className:"mr-1",size:"small"})}),n[2]=a):a=n[2],n[3]!==c||n[4]!==u?(o=(0,r.jsx)(F,{author:c,repo:u}),n[3]=c,n[4]=u,n[5]=o):o=n[5],n[6]===Symbol.for("react.memo_cache_sentinel")?(s=(0,r.jsx)("span",{className:"pl-1",children:"pushed"}),n[6]=s):s=n[6],n[7]!==d||n[8]!==t||n[9]!==o?(i=(0,r.jsxs)("div",{className:t,children:[a,o,s,d]}),n[7]=d,n[8]=t,n[9]=o,n[10]=i):i=n[10],i}try{F.displayName||(F.displayName="SingleAuthor")}catch{}try{R.displayName||(R.displayName="AuthorByline")}catch{}try{U.displayName||(U.displayName="TwoAuthors")}catch{}try{O.displayName||(O.displayName="MultipleAuthors")}catch{}try{P.displayName||(P.displayName="CommitAttribution")}catch{}try{H.displayName||(H.displayName="AuthoredOrCommitted")}catch{}try{W.displayName||(W.displayName="PushAttribution")}catch{}},78314:(e,t,a)=>{a.d(t,{d:()=>i,t:()=>n});var r=a(74848),l=a(21728),o=a(96540);let s=o.createContext({});function i(e){let t,a=(0,l.c)(3),{repository:o,children:i}=e;return a[0]!==i||a[1]!==o?(t=(0,r.jsxs)(s.Provider,{value:o,children:[" ",i," "]}),a[0]=i,a[1]=o,a[2]=t):t=a[2],t}function n(){return o.useContext(s)}try{s.displayName||(s.displayName="CurrentRepositoryContext")}catch{}try{i.displayName||(i.displayName="CurrentRepositoryProvider")}catch{}},94195:(e,t,a)=>{a.d(t,{Gy:()=>c,LB:()=>x,nn:()=>p,lm:()=>m});var r=a(74848),l=a(96540);let o=null,s=null,i=new Set;function n(e){return i.add(e),o||(o=new ResizeObserver(()=>{s||(s=requestAnimationFrame(()=>{for(let e of(s=null,i))e()}))})).observe(document.documentElement),()=>{i.delete(e),0===i.size&&o&&(o.disconnect(),o=null)}}let c={small:1,medium:544,large:768,xlarge:1012,xxlarge:1280,xxxlarge:1350,xxxxlarge:1440},u=[c.xxxxlarge,c.xxxlarge,c.xxlarge,c.xlarge,c.large,c.medium,c.small],d=l.createContext({screenSize:c.small});function m(){return l.useContext(d)}function h(){return p(window.innerWidth)}function x({children:e,initialValue:t=c.small}){let a=(0,l.useSyncExternalStore)(n,h,(0,l.useCallback)(()=>t,[t])),o=(0,l.useMemo)(()=>({screenSize:a}),[a]);return(0,r.jsx)(d.Provider,{value:o,children:e})}function p(e){for(let t of u)if(e>=t)return t;return c.small}try{d.displayName||(d.displayName="ScreenContext")}catch{}try{x.displayName||(x.displayName="ScreenSizeProvider")}catch{}},99896:(e,t,a)=>{a.d(t,{xC:()=>j,B6:()=>B,ym:()=>T});var r=a(74848),l=a(21728),o=a(38621),s=a(87448),i=a(55255),n=a(10436),c=a(96540),u=a(34164),d=a(69726),m=a(15220),h=a(77430),x=a(57352),p=a(11196);let g={Box:"CheckRunItem-module__Box--LZ7kH",Box_1:"CheckRunItem-module__Box_1--uqwhY",Link:"CheckRunItem-module__Link--sKVjI",Text:"CheckRunItem-module__Text--yCiXY",Text_1:"CheckRunItem-module__Text_1--byPUg",Text_2:"CheckRunItem-module__Text_2--JMqoY",Link_1:"CheckRunItem-module__Link_1--i579_",Box_2:"CheckRunItem-module__Box_2--Ht42S"};function f(e){let t,a,s,i,n,c,u,d,m,f,y,N,_,v=(0,l.c)(37),{checkRun:C}=e;v[0]!==C.icon?(t=function(e){switch(e){case"check":return(0,r.jsx)(o.CheckIcon,{className:"fgColor-success my-0 mx-2 flex-self-center"});case"dot-fill":return(0,r.jsx)(o.DotFillIcon,{className:"fgColor-attention my-0 mx-2 flex-self-center"});case"stop":return(0,r.jsx)(o.StopIcon,{className:"fgColor-muted my-0 mx-2 flex-self-center"});case"issue-reopened":return(0,r.jsx)(o.IssueReopenedIcon,{className:"fgColor-muted my-0 mx-2 flex-self-center"});case"clock":return(0,r.jsx)(o.ClockIcon,{className:"fgColor-attention my-0 mx-2 flex-self-center"});case"square-fill":return(0,r.jsx)(o.SquareFillIcon,{className:"fgColor-default my-0 mx-2 flex-self-center"});case"skip":return(0,r.jsx)(o.SkipIcon,{className:"fgColor-muted my-0 mx-2 flex-self-center"});case"alert":return(0,r.jsx)(o.AlertIcon,{className:"fgColor-danger my-0 mx-2 flex-self-center"});default:return(0,r.jsx)(o.XIcon,{className:"fgColor-danger my-0 mx-2 flex-self-center"})}}(C.icon),v[0]=C.icon,v[1]=t):t=v[1];let k=t,j="in_progress"===C.state;return v[2]!==k||v[3]!==j?(a=j?(0,r.jsx)("div",{className:g.Box_2,children:(0,r.jsxs)("svg",{fill:"none",viewBox:"0 0 16 16",className:"anim-rotate","aria-hidden":"true",role:"img",children:[(0,r.jsx)("path",{opacity:".5",d:"M8 15A7 7 0 108 1a7 7 0 000 14v0z",stroke:"#dbab0a",strokeWidth:"2"}),(0,r.jsx)("path",{d:"M15 8a7 7 0 01-7 7",stroke:"#dbab0a",strokeWidth:"2"}),(0,r.jsx)("path",{d:"M8 12a4 4 0 100-8 4 4 0 000 8z",fill:"#dbab0a"})]})}):(0,r.jsx)(r.Fragment,{children:k}),v[2]=k,v[3]=j,v[4]=a):a=v[4],v[5]!==C.avatarBackgroundColor?(s={backgroundColor:C.avatarBackgroundColor},v[5]=C.avatarBackgroundColor,v[6]=s):s=v[6],v[7]!==C.avatarLogo||v[8]!==s?(i=(0,r.jsx)(h.r,{square:!0,src:C.avatarLogo,sx:s}),v[7]=C.avatarLogo,v[8]=s,v[9]=i):i=v[9],v[10]!==C.avatarUrl||v[11]!==i?(n=(0,r.jsx)(x.A,{href:C.avatarUrl,"aria-label":"Avatar",className:g.Link,children:i}),v[10]=C.avatarUrl,v[11]=i,v[12]=n):n=v[12],v[13]!==C.avatarDescription||v[14]!==n?(c=(0,r.jsx)(p.m,{text:C.avatarDescription,direction:"e",children:n}),v[13]=C.avatarDescription,v[14]=n,v[15]=c):c=v[15],v[16]!==a||v[17]!==c?(u=(0,r.jsxs)("div",{className:g.Box_1,children:[a,c]}),v[16]=a,v[17]=c,v[18]=u):u=v[18],v[19]!==C.name?(d=(0,r.jsxs)("span",{className:g.Text_1,children:[C.name," "]}),v[19]=C.name,v[20]=d):d=v[20],v[21]!==C.additionalContext||v[22]!==C.pending?(m=C.pending?(0,r.jsx)("span",{className:g.Text_2,children:C.additionalContext}):C.additionalContext,v[21]=C.additionalContext,v[22]=C.pending,v[23]=m):m=v[23],v[24]!==C.description||v[25]!==C.pending?(f=C.description&&(0,r.jsxs)("span",{children:[" ","- ",C.pending?(0,r.jsx)("span",{className:g.Text_2,children:C.description}):C.description]}),v[24]=C.description,v[25]=C.pending,v[26]=f):f=v[26],v[27]!==f||v[28]!==d||v[29]!==m?(y=(0,r.jsxs)("span",{className:g.Text,children:[d,m,f]}),v[27]=f,v[28]=d,v[29]=m,v[30]=y):y=v[30],v[31]!==C.targetUrl?(N=(0,r.jsx)(x.A,{href:C.targetUrl,className:g.Link_1,children:"Details"}),v[31]=C.targetUrl,v[32]=N):N=v[32],v[33]!==y||v[34]!==N||v[35]!==u?(_=(0,r.jsxs)("li",{"data-testid":"check-run-item",className:g.Box,children:[u,y,N]}),v[33]=y,v[34]=N,v[35]=u,v[36]=_):_=v[36],_}try{f.displayName||(f.displayName="CheckRunItem")}catch{}let y={Box:"ChecksStatusBadgeFooter-module__Box--A9a95"};function N(e){let t,a,o=(0,l.c)(4),{checkRuns:s}=e;return o[0]!==s?(t=s.map(_),o[0]=s,o[1]=t):t=o[1],o[2]!==t?(a=(0,r.jsx)("ul",{className:y.Box,children:t}),o[2]=t,o[3]=a):a=o[3],a}function _(e,t){return(0,r.jsx)(f,{checkRun:e},t)}try{N.displayName||(N.displayName="ChecksStatusBadgeFooter")}catch{}let v={Text:"ChecksStatusBadgeHeader-module__Text--mNbul",Text_1:"ChecksStatusBadgeHeader-module__Text_1--Ccfb0",Text_2:"ChecksStatusBadgeHeader-module__Text_2--d8Yn7"};function C(e){let t=(0,l.c)(4),{checksHeaderState:a}=e;switch(a){case"SUCCEEDED":{let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)("span",{className:v.Text,children:"All checks have passed"}),t[0]=e):e=t[0],e}case"FAILED":{let e;return t[1]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)("span",{className:v.Text_1,children:"All checks have failed"}),t[1]=e):e=t[1],e}case"PENDING":{let e;return t[2]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)("span",{className:v.Text_2,children:"Some checks haven\u2019t completed yet"}),t[2]=e):e=t[2],e}default:{let e;return t[3]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)("span",{className:v.Text_1,children:"Some checks were not successful"}),t[3]=e):e=t[3],e}}}try{C.displayName||(C.displayName="HeaderState")}catch{}let k={Dialog:"CheckStatusDialog-module__Dialog--k1EnR",Dialog_Body:"CheckStatusDialog-module__Dialog_Body--sRD_i",Box:"CheckStatusDialog-module__Box--uYuTX"};function j(e){let t,a,o=(0,l.c)(7),{combinedStatus:s,isOpen:i,onDismiss:n}=e;o[0]!==s?(t=s?(0,r.jsx)(C,{checksHeaderState:s.checksHeaderState}):"Loading...",o[0]=s,o[1]=t):t=o[1];let c=t;return o[2]!==s||o[3]!==i||o[4]!==n||o[5]!==c?(a=i?(0,r.jsx)(m.l,{onClose:n,title:c,subtitle:s?s.checksStatusSummary:void 0,width:"xlarge",renderBody:()=>(0,r.jsx)(m.l.Body,{className:k.Dialog_Body,children:s?(0,r.jsx)(N,{checkRuns:s.checkRuns}):(0,r.jsx)("div",{className:k.Box,children:(0,r.jsx)(d.A,{size:"medium"})})}),className:k.Dialog}):null,o[2]=s,o[3]=i,o[4]=n,o[5]=c,o[6]=a):a=o[6],a}try{j.displayName||(j.displayName="CheckStatusDialog")}catch{}let b={ChecksStatusBadgeButton:"ChecksStatusBadge-module__ChecksStatusBadgeButton--rZYKL",ChecksStatusBadgeIconButton:"ChecksStatusBadge-module__ChecksStatusBadgeIconButton--rpD4z"},A={success:{circled:o.CheckCircleIcon,filled:o.CheckCircleFillIcon,default:o.CheckIcon,color:"var(--bgColor-success-emphasis, var(--color-success-emphasis))"},pending:{circled:o.CircleIcon,filled:o.DotFillIcon,default:o.DotFillIcon,color:"var(--bgColor-attention-emphasis, var(--color-scale-yellow-4))"},failure:{circled:o.XCircleIcon,filled:o.XCircleFillIcon,default:o.XIcon,color:"var(--bgColor-danger-emphasis, var(--color-scale-red-4))"},error:{circled:o.QuestionIcon,filled:o.QuestionIcon,default:o.QuestionIcon,color:"var(--fgColor-muted, var(--color-canvas-subtle))"}};function S(e){let t,a,o,s,d,m=(0,l.c)(19),{className:h,descriptionText:x,icon:p,iconColor:g,tooltipText:f}=e,y=(0,c.useId)(),N=f?y:void 0,_=f?void 0:x||"See all checks";m[0]!==g?(t={color:g},m[0]=g,m[1]=t):t=m[1],m[2]!==p||m[3]!==N||m[4]!==_||m[5]!==t?(a=(0,r.jsx)(n.m4,{"aria-labelledby":N,icon:p,"aria-label":_,sx:t}),m[2]=p,m[3]=N,m[4]=_,m[5]=t,m[6]=a):a=m[6];let v=a;if(f){let e;m[7]!==v||m[8]!==y||m[9]!==f?(e=(0,r.jsx)(i.A,{id:y,"aria-label":f,direction:"e",children:v}),m[7]=v,m[8]=y,m[9]=f,m[10]=e):e=m[10],v=e}return m[11]!==h?(o=(0,u.$)(h,"d-flex flex-items-center gap-1"),m[11]=h,m[12]=o):o=m[12],m[13]!==x?(s=x&&(0,r.jsxs)("span",{children:[" ",x]}),m[13]=x,m[14]=s):s=m[14],m[15]!==v||m[16]!==o||m[17]!==s?(d=(0,r.jsxs)("span",{className:o,"data-testid":"checks-status-badge-icon-only",children:[v,s]}),m[15]=v,m[16]=o,m[17]=s,m[18]=d):d=m[18],d}function B(e){let t,a,o,i,n=(0,l.c)(27),{statusRollup:d,combinedStatus:m,variant:h,disablePopover:x,buttonClassName:p,buttonSx:g,size:f,descriptionText:y,onWillOpenPopup:N}=e,_=void 0===h?"default":h,v=void 0===f?"medium":f,C=void 0===y?"":y,[k,B]=(0,c.useState)(!1),L=(0,c.useRef)(null),I=A[d],T=I?.[_]||A.error[_],w=I?.color||A.error.color;n[0]!==T||n[1]!==w?(t={icon:T,iconColor:w},n[0]=T,n[1]=w,n[2]=t):t=n[2];let{icon:D,iconColor:z}=t;if("error"===d){let e,t=x?void 0:"p-1";return n[3]!==D||n[4]!==z||n[5]!==t?(e=(0,r.jsx)(S,{className:t,descriptionText:"?/?",icon:D,iconColor:z,tooltipText:"There was an error retrieving checks status"}),n[3]=D,n[4]=z,n[5]=t,n[6]=e):e=n[6],e}if(x){let e;return n[7]!==C||n[8]!==D||n[9]!==z?(e=(0,r.jsx)(S,{descriptionText:C,icon:D,iconColor:z}),n[7]=C,n[8]=D,n[9]=z,n[10]=e):e=n[10],e}return n[11]!==p||n[12]!==g||n[13]!==m?.checksStatusSummary||n[14]!==C||n[15]!==N||n[16]!==D||n[17]!==z||n[18]!==v||n[19]!==d?(a=C?(0,r.jsx)(s.$n,{"data-testid":"checks-status-badge-button",leadingVisual:D,variant:"invisible",size:v,"aria-label":m?.checksStatusSummary??`Status checks: ${d}`,sx:{svg:{color:z},...g},ref:L,onClick:()=>{N?.(),B(!0)},className:(0,u.$)(b.ChecksStatusBadgeButton,p),children:C}):(0,r.jsx)(s.K0,{"data-testid":"checks-status-badge-icon",tooltipDirection:"s",icon:D,variant:"invisible",size:v,"aria-label":m?.checksStatusSummary??d,sx:{svg:{color:z},...g},className:(0,u.$)(b.ChecksStatusBadgeIconButton,p),ref:L,onClick:()=>{N?.(),B(!0)}}),n[11]=p,n[12]=g,n[13]=m?.checksStatusSummary,n[14]=C,n[15]=N,n[16]=D,n[17]=z,n[18]=v,n[19]=d,n[20]=a):a=n[20],n[21]!==m||n[22]!==k?(o=k&&(0,r.jsx)(j,{combinedStatus:m,isOpen:k,onDismiss:()=>{B(!1),setTimeout(()=>{L.current?.focus()},0)}}),n[21]=m,n[22]=k,n[23]=o):o=n[23],n[24]!==a||n[25]!==o?(i=(0,r.jsxs)(r.Fragment,{children:[a,o]}),n[24]=a,n[25]=o,n[26]=i):i=n[26],i}try{S.displayName||(S.displayName="IconOnlyStatus")}catch{}try{B.displayName||(B.displayName="ChecksStatusBadge")}catch{}var L=a(25407),I=a(96379);function T(e,t){let a,r,o=(0,l.c)(7),[s,i]=(0,c.useState)(),[n,u]=(0,c.useState)();o[0]!==e||o[1]!==n||o[2]!==t?(a=async()=>{if(n!==e&&(u(e),i(void 0),e)){let a=(0,L.vki)(t,e),r=await (0,I.lS)(a);i(await r.json())}},o[0]=e,o[1]=n,o[2]=t,o[3]=a):a=o[3];let d=a;return o[4]!==s||o[5]!==d?(r=[s,d],o[4]=s,o[5]=d,o[6]=r):r=o[6],r}}}]); //# sourceMappingURL=packages_commit-attribution_index_ts-packages_commit-checks-status_index_ts-packages_current--18e2dc-f83eebdfaf51.js.map